﻿<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglibs.jsp"%>

<%
String k=request.getParameter("k");
if(k==null)k=(String)request.getAttribute("k");
%>
<table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="/search.html" id="search_form"><input type="hidden" name="k" value="<%=k%>">
<tr>
<td>
年级：<select name="grade" id="FK_grade" style="width:70px;"><option value="">全部</option><c:forEach var="i" items="${grade}"><option value="${i}">${i}</option></c:forEach></select>
科目：<select name="subject" id="FK_subject" style="width:70px;"><option value="">全部</option><c:forEach var="i" items="${subject}"><option value="${i}">${i}</option></c:forEach></select>
年级：
<select name="rating" id="FK_rating" style="width:70px;"><option value="-1">全部</option><c:forEach var="i" items="${ratings}"><option value="${i}">${i}</option></c:forEach></select>
关键字：<input name="title" type="text" id="FK_title" class="STYLE17" style="width:120px; height:20px" onclick="click_find('FK_title')" value="请输入关键字">
</td>
<td valign="midden"><a href="#" onclick="{click_find('FK_title');$E('search_form').submit();}"><img src="${context_path}/images/btn_find.gif" width="66" height="24" border="0"></a></td>
</tr>
</form>
</table>
<script>
function load_js(){
	if("${o.grade}"!="")$E('FK_grade').value="${o.grade}";
	if("${o.subject}"!="")$E('FK_subject').value="${o.subject}";
	if("${rating}"!="")$E('FK_rating').value="${rating}";
	if("${o.title}"!="")$E('FK_title').value="${o.title}";
	if("<%=k%>"=="zy")$E("BG_img").background="/images/zylb.gif";
	if("<%=k%>"=="jc")$E("BG_img").background="/images/jclb.gif";
	if("<%=k%>"=="sj")$E("BG_img").background="/images/sj.gif";
}
function click_find(id){
	var a = $E(id).value;
	if(a=="请输入关键字")$E(id).value="";
}
</script>
